package cn.itcast.service.impl;

import cn.itcast.domain.Admin;
import cn.itcast.domain.User;
import cn.itcast.mapper.AdminMapper;
import cn.itcast.service.AdminService;
import cn.itcast.utils.MapperUtils;

public class AdminServiceImpl implements AdminService {
    private AdminMapper mapper = null;

    //登录功能
    public Admin login(String username, String password) {
         mapper = (AdminMapper) MapperUtils.getMapper(AdminMapper.class);
        return mapper.login(username, password);
    }
}
